package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.ReceiptForm;

/**
 * 料单Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-16
 */
public interface ReceiptFormMapper 
{
    /**
     * 查询料单
     * 
     * @param receiptId 料单ID
     * @return 料单
     */
    public ReceiptForm selectReceiptFormById(Long receiptId);

    /**
     * 查询料单列表
     * 
     * @param receiptForm 料单
     * @return 料单集合
     */
    public List<ReceiptForm> selectReceiptFormList(ReceiptForm receiptForm);

    /**
     * 新增料单
     * 
     * @param receiptForm 料单
     * @return 结果
     */
    public int insertReceiptForm(ReceiptForm receiptForm);

    /**
     * 修改料单
     * 
     * @param receiptForm 料单
     * @return 结果
     */
    public int updateReceiptForm(ReceiptForm receiptForm);

    /**
     * 删除料单
     * 
     * @param receiptId 料单ID
     * @return 结果
     */
    public int deleteReceiptFormById(Long receiptId);

    /**
     * 批量删除料单
     * 
     * @param receiptIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteReceiptFormByIds(Long[] receiptIds);
    
    public Integer getSequence(String maxKey);
}
